package com.bwie.controller;

import com.bwie.service.TbCustomerService;
import com.bwie.utils.Result;
import com.bwie.vo.CustomerVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/auth/cust")
public class CustomerController {

    @Autowired
    TbCustomerService tbCustomerService;


    /**
     * @description 客户登录
     * @params [customerBo]
     * @return com.bwie.utils.Result
     * @author 杰
     * @date 2025/7/11 9:43
     */
    @PostMapping("/CustomerLogin")
    public Result CustomerLogin(@RequestBody CustomerVo customerVo){

       return tbCustomerService.CustomerLogin(customerVo);

    }


    @PostMapping("/queryAddressByCustId")
    public Result queryAddressByCustId(){
        return tbCustomerService.queryAddressByCustId();
    }


}
